package contants;

/**
 * @author zhw
 * @create 2021-06-17
 */
public interface CommonConstant {
    /**
     * 请求头参数字符串 X-Access-Token
     */
    public final static String X_ACCESS_TOKEN = "Authorization";
    public final static String TOKEN = "X-Access-Token";
    /**
     * 上传类型-本地 local
     */
    public final static String UPLOAD_TYPE_LOCAL = "local";
    /**
     * redis里面的token前缀
     */
    public final static String PREFIX_USER_TOKEN = "user:login:";

    /**
     * 未删除
     */
    public static final Integer DEL_FLAG_0 = 0;
    /**
     * 系统的标识符，配合nginx进行区分是哪个系统
     */
    public static final String SUB_SYSTEM_CODE = "center";

    /**
     *  0：一级菜单
     */
    public static final Integer MENU_TYPE_0  = 0;
    /**
     *  1：子菜单
     */
    public static final Integer MENU_TYPE_1  = 1;
    /**
     *  2：按钮权限
     */
    public static final Integer MENU_TYPE_2  = 2;

    /**
     * 状态(0无效1有效)
     */
    public static final String STATUS_0 = "0";
    public static final String STATUS_1 = "1";

    /**
     * 门户管理员角色code,用来查询门户角色的id
     */
    public static final String HOME_ROLE_CODE = "home";
}


